package jp.co.dailyReport;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.*;
import org.apache.log4j.Logger;
import org.apache.struts.action.*;

/**
 * TOPページの出力処理を行うクラスです。
 */
public class TopAction extends Action {

	private static Logger log = Logger.getLogger(TopAction.class);

    public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
        throws IOException, ServletException {

        log.debug("TopAction start");
        HttpSession session = request.getSession();

		session.removeAttribute("dailyReport");
		session.removeAttribute("pjWorkItemList");
		session.removeAttribute("pjDailyReportWorkItemList");
		session.removeAttribute("dailyReportWorkItem");
		session.removeAttribute("workItemList");
		session.removeAttribute("projectList");
		session.removeAttribute("nonDisplayWorkItemList");

		log.debug("TopAction end");
        return mapping.findForward("top");
    }
}